projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb08f6
)
(update_frame): Make preempt_count positive.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 31 May 1993 19:04:20 +0000
(19:04 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 31 May 1993 19:04:20 +0000
(19:04 +0000)
Defend against negative baud_rate.
src/dispnew.c
patch
|
blob
|
history
diff --git
a/src/dispnew.c
b/src/dispnew.c
index e9c7521494a5d902278f3e55fd2e6d76826d83ae..a5f35362f1c7925b7b0cd5d3328e42f39c28e1bc 100644
(file)
--- a/
src/dispnew.c
+++ b/
src/dispnew.c
@@
-955,6
+955,9
@@
update_frame (f, force, inhibit_hairy_id)
register int downto, leftmost;
#endif
+ if (preempt_count <= 0)
+ preempt_count = 1;
+
if (FRAME_HEIGHT (f) == 0) abort (); /* Some bug zeros some core */
detect_input_pending ();
@@
-1025,7
+1028,8
@@
update_frame (f, force, inhibit_hairy_id)
outq = PENDING_OUTPUT_COUNT (stdout);
#endif
outq *= 10;
- sleep (outq / baud_rate);
+ if (baud_rate > 0)
+ sleep (outq / baud_rate);
}
}
if ((i - 1) % preempt_count == 0)